//
//  RcyDoctorApplyDetailsViewController.m
//  QuickCure1
//
//  Created by 饶辰烨 on 16/10/31.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "RcyDoctorApplyDetailsViewController.h"
#import <UIImageView+WebCache.h>
@interface RcyDoctorApplyDetailsViewController ()

@end

@implementation RcyDoctorApplyDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
    
}

-(void)setupUI
{
    self.navigationItem.title = @"医生详情";
    
    [self.iv_doctor sd_setImageWithURL:[NSURL URLWithString:_model.doctor_portrait]];
    self.lb_bannercount.text = [@"获得锦旗数:" stringByAppendingString:self.model.banner.description];
    self.lb_operationcount.text = [@"当前预约数量:" stringByAppendingString:self.model.operation_count.description];
    self.lb_workplace.text = self.model.doctor_hospital_name;
    self.lb_doctorname.text = self.model.doctor_name;
    self.lb_gender.text = self.model.doctor_gender.intValue ? @"性别:男":@"性别:女";
    self.lb_accuracy.text = [NSString stringWithFormat:@"治愈率:%@",self.model.accuracy];
    
}

- (IBAction)clickCancelBtn:(id)sender {//通过点击btn调用block回调 来传递点击的cell的下标
    NSLog(@"取消申请就诊");
    
    NSAssert(_clickCancelBtn != nil, @"_clickCancelBtn不能为空");
    
    _clickCancelBtn(_indexpath);
    
    [self.navigationController popViewControllerAnimated:YES];
    
    
}

//-(void)dealloc
//{
//    NSLog(@"dealloc");
//}


@end
